﻿using ML.Entity;
using ML.IBusiness;
using ML.IRepository;

namespace ML.Business
{
    /// <summary>
    /// 汇率业务实现类
    /// </summary>
    public class CurrencyBusiness : ICurrencyBusiness
    {
        private readonly ICurrencyRepository currencyRepository;
        public CurrencyBusiness(ICurrencyRepository _currencyRepository)
        {
            currencyRepository = _currencyRepository;
        }

        public BaseResult<Pager<CurrencyResponse>> List(CurrencySearch currencySearch)
        {
            Pager<CurrencyResponse> data = currencyRepository.List(currencySearch);
            return new BaseResult<Pager<CurrencyResponse>>(200, data);
        }
    }
}